package com.primary.service;

import com.github.pagehelper.PageInfo;
import com.primary.controller.request.DistributeRequest;
import com.primary.controller.request.HistoryRequest;
import com.primary.entity.Distribute;
import com.primary.entity.History;

import java.util.Map;

public interface DistributeService {
    /**
     * 用于分页显示信息
     * @param distributeRequest
     */
    PageInfo<Map<String, Object>> queryByPage(DistributeRequest distributeRequest);

    /**
     * 插入一条数据
     * @param distribute
     * @return
     */
    int insertOne(Distribute distribute);

    /**
     * 更新一条数据
     * @param distribute
     * @return
     */
    int updateOneById(Distribute distribute);

    /**
     * 删除一条记录
     * @param id
     * @return
     */
    boolean deleteById(Integer id);
}
